package com.example.jobsearch.service;

import com.example.jobsearch.mapper.CompanyInfoMapper;
import com.example.jobsearch.model.CompanyInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobSearchService {
    @Autowired
    private CompanyInfoMapper companyInfoMapper;

    public List<CompanyInfo> searchJobs(String job_name, String fl) {
        return companyInfoMapper.searchJobs(job_name, fl);
    }

    public CompanyInfo getJobByName(String job_name) {
        return companyInfoMapper.getJobByName(job_name);
    }
}